<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>首页</title>
<link rel="stylesheet" href="../static/main/css/styles.css">
<link rel="stylesheet" type="text/css"
	href="../static/jquery-ui-themes-1.10.4/themes/ui-darkness/jquery.ui.theme.css">
<link rel="stylesheet" type="text/css"
	href="../static/jquery-ui-themes-1.10.4/themes/ui-darkness/jquery-ui.css">
<link rel="stylesheet"
	href="../webjars/bootstrap/3.3.7-1/css/bootstrap.css">
<link rel="stylesheet" type="text/css"
	href="../static/jqgrid/css/ui.jqgrid.css">
<script type="text/javascript"
	src="../static/jqgrid/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
	src="../webjars/bootstrap/3.3.7-1/js/bootstrap.js"></script>
<script type="text/javascript"
	src="../static/jqgrid/js/jquery.jqGrid.min.js"></script>
<script type="text/javascript" src="../static/laydate/laydate.js"></script>
<script type="text/javascript" src="../static/jqgrid/js/jquery-ui.js"></script>
<script type="text/javascript"
	src="../static/jqgrid/js/grid.locale-cn.js"></script>

<script type="text/javascript">
	$(function() {
		$('#list1').jqGrid({
			url : 'list',
			editurl : 'edit',
			caption : '租户列表',
			altRow : true,
			autowidth : true,
			width : '100%',
			/* height:'100%', */
			datatype : 'json',
			mtype : 'post',
			PageSize : 15,
			rowNum : 10,
			rowList : [ 5, 10, 35, 100 ],
			prmNames : {
				search : 'search'
			},
			sortname : 'id',
			viewrecords : true,
			pager : '#dhl',
			jsonReader : {
				repeatitems : false,
				id : 'id'
			},
			colModel : [
			//{name:'id',label:'编号',index:'id',align:'center',width:'60',sorttype:'int'},
			/* {name:'zhuce',label:'用户注册',index:'zhuce',align:'center',width:'100',sorttype:'text'//,editable:true,editrules:{required: true}
			}, */
			/* {name:'zxyh',label:'新增用户',index:'zxyh',align:'center',sorttype:'text'//,editable:true,editrules:{required: true}
			}, */
			{
				name : 'tenant.username',
				label : '用户名',
				index : 'tenant.id',
				align : 'center',
				sorttype : 'text'
			}, {
				name : 'login',
				label : '用户登入时间',
				index : 'login',
				align : 'center',
				sorttype : 'text'
			}
			//{name:'dengchu.out',label:'用户登出时间',index:'dengchu.id',align:'center',width:'100',sorttype:'text'//,editable:true,editrules:{required: true}
			//},
			/* 	{name:'xzfp.invoice',label:'发票号码',index:'xzfp.id',align:'center',width:'100',sorttype:'text'//,editable:true,editrules:{required: true}
				},
				{name:'xzfp.invoice_code',label:'新增代码',index:'xzfp.id',align:'center',width:'100',sorttype:'text'//,editable:true,editrules:{required: true}
				} */
			]

		});

		$('#list1').jqGrid('navGrid', '#dhl', {
			//refresh:false,//刷新
			//search:false,//搜索
			edit : false,
			add : true,
			del : false,
			view : false,
		//searchtext:'查找',edittext:'编辑',addtext:'添加',refreshtext:'刷新', deltext:'删除'
		}, {
			top : 204,
			left : 453

		}, {
			top : 204,
			left : 453
		}, {
			top : 204,
			left : 453
		}, {
			multipleSearch : true
		});

	});
</script>
<style type="text/css">
.neirong {
	margin: 0;
	padding-left: 15%;
	padding-right: 15%;
}

.ui-pg-input {
	background: #999;
	color: #000;
	text-align: center;
	font-size: 20px;
	font-weight: 1000;
}

.ui-pg-selbox {
	background: #999;
	color: #000;
	font-weight: 1000;
}

.ui-pg-selbox option {
	font-weight: 1000;
}

#fa {
	margin: 0;
	padding: 0 5px;
	font-weight: 1000;
	font-size: 25px;
}

select {
	background: #999;
	color: #000;
}

option {
	background: #999;
	color: #000;
}

.add-rule ui-add {
	color: #000;
}

input[type="button"] {
	color: #000;
}
</style>

</head>
<body>

	<div class="caidan">
		<div class="htmleaf-container">
			<nav class="animenu">
				<ul class="animenu__nav"
					style="margin-left: 15%; margin-right: 15%;">
					<li style="font-size: 20px; font-weight: 1100;"><a id="fa">发票管理系统</a></li>
					<li><a href="#"><span class="glyphicon glyphicon-home">首页</span></a></li>
					<li><a>欢迎您:<span sec:authorize="hasRole('ROLE_DBA')">开发者</span><span
							sec:authorize="!hasRole('ROLE_DBA')"
							sec:authentication="principal.name">张三</span></a></li>
					<li sec:authorize="hasRole('ROLE_MANAGER')"><a
						href="../UserTenant/zuhugl"><span
							class="glyphicon glyphicon-pencil">租户编辑</span></a></li>
					<li sec:authorize="hasRole('ROLE_ADMIN')"><a
						href="../UserManager/xzgl"><span
							class="glyphicon glyphicon-pencil">用户编辑</span></a></li>
					<li sec:authorize="hasRole('ROLE_ZUHU')"><a
						href="../User/xzgl"><span class="glyphicon glyphicon-pencil">用户管理</span></a></li>
					<li sec:authorize="hasRole('ROLE_MANAGER')"><a
						href="../UserManager/fpcx">电子发票查询</a></li>
					<li sec:authorize="hasRole('ROLE_MANAGER')"><a
						href="../UserManager/sqxx">软件授权信息</a>
					<li sec:authorize="hasRole('ROLE_ZUHU')"><a
						href="../Tenantxx/zxfp">新增电子发票信息</a></li>
					<li sec:authorize="hasRole('ROLE_ADMIN')"><a
						href="../SysUser/yhcz">用户操作日志</a></li>
					<li sec:authorize="hasRole('ROLE_ADMIN')"><a
						href="../SysUser/xgmm"><span class="glyphicon glyphicon-tags">&nbsp;修改密码</span></a></li>
					<li sec:authorize="hasRole('ROLE_MANAGER')"><a
						href="../UserManager/xgmm"><span
							class="glyphicon glyphicon-tags">&nbsp;修改密码</span></a></li>
					<li sec:authorize="hasRole('ROLE_ZUHU')"><a
						href="../UserTenant/xgmm"><span
							class="glyphicon glyphicon-tags">&nbsp;修改密码</span></a></li>
					<li style="float: right;"><a href="../logout"><span
							class="glyphicon glyphicon-off">注销</span></a></li>
				</ul>
			</nav>
		</div>
	</div>

	<div class="neirong">
		<table id="list1"></table>
		<div id="dhl"></div>
	</div>

</body>
</html>